export enum ComponentDescriptorType {
  ENRICHMENT = 'ENRICHMENT',
  FILTER = 'FILTER',
  TRANSFORMATION = 'TRANSFORMATION',
  ACTION = 'ACTION',
  EXTERNAL = 'EXTERNAL',
  FLOW = 'FLOW',
}

export const COMPONENTS_DESCRIPTOR_TYPE_OPTIONS = [
  { value: ComponentDescriptorType.FILTER, label: '筛选器', color: '#D3E5F4' },
  { value: ComponentDescriptorType.ENRICHMENT, label: '属性集', color: '#CDE880' },
  { value: ComponentDescriptorType.TRANSFORMATION, label: '变换', color: '#ACC7FF' },
  { value: ComponentDescriptorType.ACTION, label: '动作', color: '#FBDAE9' },
  { value: ComponentDescriptorType.EXTERNAL, label: '外部', color: '#FFC145' },
  { value: ComponentDescriptorType.FLOW, label: '数据流', color: '#D1BBEF' },
];
